# Author: Damian 'Rush' Kaczmarek
# License: MIT

package Mu;
use base Module;
use strict;

my $lastmu;

Module::define_command("mu", \&on_mu,
	{
		about => "Do muuuuu",
		example => "!mu",
	}
);

sub on_mu
{
	my $time = time();
	if ($time - $lastmu > 10) {
		Core::send_msg("                    ________________________");
		Core::send_msg("           (__)    /                        \\");
		Core::send_msg("           (oo)   ( muuuuuuuuu?              )");
		Core::send_msg("    /-------\\/  --'\\________________________/");
		Core::send_msg("   / |     ||");
		Core::send_msg("  *  ||----||");
		Core::send_msg("     ^^    ^^");
		$lastmu = $time;
	}
}
1;
